org.eclipse.vtp.framework.core
Interface IContext

All Superinterfaces:
ILogger, IReporter
All Known Subinterfaces:
IActionContext, IExecutionContext, IProcessContext, ISessionContext
All Known Implementing Classes:
AbstractActionContext, AbstractContext, AbstractExecutionContext, AbstractProcessContext, AbstractSessionContext, ActionContextWrapper, Execution.Context, ExecutionContextWrapper, Process.Context, ProcessContextWrapper, Sequence.Context, Session.Context, SessionContextWrapper

public interface IContext
extends ILogger

A registry of service objects indexed by identifier.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.core.IReporter
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, SEVERITY_WARN
 
Method Summary
 java.lang.Object lookup(java.lang.String identifier)
          Looks up the service selected for the specified identifier or null if no such service exists.
 java.lang.Object[] lookupAll(java.lang.String identifier)
          Returns an array containing all the services registered under the specified identifier.
 
Methods inherited from interface org.eclipse.vtp.framework.core.ILogger
debug, debug, debug, debug, error, error, error, error, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, warn, warn, warn, warn
 
Methods inherited from interface org.eclipse.vtp.framework.core.IReporter
isSeverityEnabled, report, report, report, report
 

Method Detail

lookup

java.lang.Object lookup(java.lang.String identifier)
                        throws java.lang.NullPointerException
Looks up the service selected for the specified identifier or null if no such service exists.

Parameters:
identifier - The identifier of the service to look up.
Returns:
The service selected for the specified identifier or null if no such service exists.
Throws:
java.lang.NullPointerException - If the supplied identifier is null.

lookupAll

java.lang.Object[] lookupAll(java.lang.String identifier)
                             throws java.lang.NullPointerException
Returns an array containing all the services registered under the specified identifier.

Parameters:
identifier - The identifier of the services to look up.
Returns:
An array containing all the services registered under the specified identifier.
Throws:
java.lang.NullPointerException - If the supplied identifier is null.